﻿using System;

namespace FBGraph.ClientGenerator.CodeGen
{
    public class Argument : CodeGenObject
    {
        public Argument(Object value)
        {
            this.Value = value;
        }

        public Object Value { get; set; }

        public override void Write(CodeGenWriter writer)
        {
            writer.Write("{1}{0}{1}", this.Value, this.Value is String ? "\"" : String.Empty);
        }
    }
}